//#########################################################################
//                              WackiEngie
//           Copyright (c) 2014 Marc Wacker. All rights reserved.
//#########################################################################

#pragma once

#include "WeTexture.h"

namespace WackiEngine
{

	class Texture2DMultisample : public Texture
	{
	public:
		Texture2DMultisample();
		Texture2DMultisample(
			GLint format, 
			GLsizei width, 
			GLsizei height,
			GLsizei samples,
			GLboolean fixedSampleLocations
		);

		static void		bindNone();
		GLsizei			samples() const;

	private:
		explicit Texture2DMultisample(const Texture2DMultisample&);
		Texture2DMultisample& operator=(const Texture2DMultisample&);
	};
	
	inline void Texture2DMultisample::bindNone()
	{
		Texture::bindNone(GL_TEXTURE_2D_MULTISAMPLE);
	}

	inline GLsizei Texture2DMultisample::samples() const
	{
		return _size[2];
	}

}